package com.teach.mapper;

import com.teach.entity.Role;

import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <pre>
 * TODO : Mapper 接口
 * 系统角色
 * ClassName : com.teach.mapper.Role
 * Author : J.L.Zhou
 * Tel : 15111047708
 * E-Mail : 12020042@qq.com
 * Date : 2020-05-02 11:35
 * Version : 1.0
 * </pre>
 */
public interface RoleMapper extends BaseMapper<Role> {
	
	@Delete("delete from sys_role where role_id=#{roleId}")
	int delete1(@Param("roleId") Integer roleId);
	
	List<Role> select1(@Param("min")Integer min,@Param("max") Integer max);
}
